import logging
import traceback

from selenium.webdriver.common.by import By
from Base.Base import Base

class Page14(Base):

    #点击权限管理
    dianji_loc=(By.XPATH,'//*[@id="sidebar"]/div[2]/div[1]/h2')
    # 点击权限管理
    quanxian_loc = (By.XPATH, '//*[@id="sidebar"]/div[2]/div[2]/ul/li[2]/div/a')


    def dianji(self):
        '''
        点击权限管理
        :return:
        '''
        try:
            self.click(self.dianji_loc)
        except Exception as e:
            logging.info(traceback.format_exc(), e)

    def quanxian(self):
        '''
        点击权限管理
        :return:
        '''
        try:
            self.click(self.quanxian_loc)
        except Exception as e:
            logging.info(traceback.format_exc(), e)

